Repository navigation
Document HTTPS pairing behind a proxy and moving the phone off http - #434
Merged
Merged
Conversation
Pairing and invite links now use https behind a trusted TLS proxy (the server's trusted_proxies, X-Forwarded-Proto or Forwarded proto), while the Bridge's pairing address stays direct. Signing in again at a server's https address moves the phone's saved http connection to https in place, keeping downloads, places and settings. Refs KodeStar/audiosilo-frontend#568
The trusted-proxy header rule, the saved-address upgrade rule and the Bridge server_url fallback were written out on several pages, and the copies had already started to differ. Each now lives on one page and the others link to it. The listener page keeps only what a listener sees.
The v2.7.0 changelog entry named only /auth/redeem and /auth/pair, but the demo session's pairing and links.web/links.admin take the same base. The reference also said other peers use the direct rules, leaving out a trusted peer with no clear HTTPS report, and its Bridge example implied server_url is the container name when it is the Host the proxy passes.
A same-scheme sign-in at a newly entered address also replaces serverUrl, not only the HTTP to HTTPS upgrade. Trust appears only when the page came through an untrusted proxy, and the HTTPS note only for a trusted one. The public address is also the apps' away address, and trusted_proxies entries must still be valid CIDRs.
The Network settings shot still showed the old help, which named only the client IP header, while the page now explains that a trusted proxy's HTTPS report makes invite links and QR codes use HTTPS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs for KodeStar/audiosilo-server#645 and KodeStar/audiosilo-frontend#577 (fe#568):
trusted_proxiesthat reports https (X-Forwarded-ProtoorForwarded: proto=);public_urlstill wins; the Bridge's pairing address stays direct; a proxy that rewrites Host should passHost $host. Server configuration, API reference and the v2.7.0 API changelog (additive: only the value ofbase_urland the links changes), admin Server and Users and invites, first run, remote access.admin/settings-network.pngregenerated with the new Trusted proxies help (the listen address reads 127.0.0.1:8890: the shot ran on another port).Every changed sentence fact-checked against the code. Refs KodeStar/audiosilo-frontend#568